import intiaData from '../state'
import {Map} from 'immutable'

function productsReducer(state=intiaData.get("products"),action){
  switch (action.type){
    case "addproduct":
            return state.push(Map(action.product))
        default:
            return state
  }
}
export default productsReducer